package com.weipai.springboot.enums;

public enum OrderStatus {
    UNPAID(1, "未付款(待付款)"),
    UNDELIVERED(2, "待发货"),
    DELIVERED(3, "待收货(已发货)"),
    SUCCESS(4, "交易完成"),
    ERROR(5, "交易失败"),
    IN_GENERATE(6, "生产中");

    private int status; //状态
    private String desc; //描述

    private OrderStatus(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
